package com.eui.demo.demonodes.model
{
	import com.eui.arch.application.model.NodePM;
	import com.eui.arch.util.PMContext;

	import flash.utils.getQualifiedClassName;

	import mx.rpc.IResponder;

	[Bindable]
	public class ParameterPM extends NodePM
	{
		public static const MANAGED_PM_ID:String = getQualifiedClassName(ParameterPM);

		public static function getInstance():ParameterPM
		{
			return PMContext.getInstance().getPM(MANAGED_PM_ID) as ParameterPM;
		}

		public var parameter:String;

		public function ParameterPM()
		{
		}

		override public function pmId():String
		{
			return MANAGED_PM_ID;
		}

		override public function enterNode(data:Object, responder:IResponder):void
		{
			parameter = data as String;
			responder.result(null);
		}
	}
}